</div><!--------------end main content----->
    <div class="bottom-content row">
        <?php wp_nav_menu( array( 'container_class' => 'access-bottom large-8 medium-8 columns', 'theme_location' => 'primary', 'menu_class' => 'menu' ) ); ?>
        <div class="bottom-mobi">
            <span>Menu</span>
            <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'menu' ) ); ?>
        </div>
        <?php wp_nav_menu( array( 'container_class' => 'access-right large-4 medium-4 columns', 'theme_location' => 'footer_menu', 'menu_class' => 'menu_footer' ) ); ?>        
    </div>
    <div class="line"></div>
    <?php if(is_home()|| is_front_page()){?>
    <div class="row news-bottom">
        <div class="border-bottom large-8 medium-8 columns no-padding">
        <?php
            $args = array(
                        'post_type'         => 'post',
                        'orderby'           => 'date',
                        'paged'             => get_query_var( 'paged' ),
                        'order'             => 'DESC',
                        'posts_per_page'    => 13
                    );
             wp_reset_query();       
            $wp_query = new WP_Query($args);
            
        ?>
        <?php $n=0; if ( $wp_query->have_posts() ) while ( $wp_query->have_posts() ) : $wp_query->the_post(); $n=$n+1; ?>
            <?php if($n > '10') { ?>
            <div class="border-news row">
            <div class="row news">
                <?php if(has_post_thumbnail()) {?>
                <div class="large-3 medium-3 small-4 columns left-news no-padding">
                    <div class="left-image">
                        <a target="_blank" href="<?php the_permalink();?>">
                            <?php the_post_thumbnail('content_home_thumb');?>
                        </a>
                    </div>
                </div>
                <?php } ?>
                <div class="large-9 medium-9 small-8 columns right-news">
                    <h3><a target="_blank" href="<?php the_permalink();?>"><?php the_title(); ?></a></h3>
                    <?php the_content();?>
                    <?php echo really_simple_share_publish($link='', $title=''); ?><span><?php the_category();?></span>
                </div>
            </div>
        </div><!-----------end border-news-------------------->
        <?php } ?>
        <?php endwhile; ?>  
        </div>
        <div id="large-4 medium-4 columns">
            <div id="btn">
                <a href="#wrapper" id="top">Top <span>^</span></a>
                <a href="?page_id=66" class="regis">登録無料</a> 
            </div>   
        </div>
    </div><!--------------end news bottom--------->
    <?php } ?>
    <div class="line"></div>
</div><!-----------end content-------->
</div><!---------------end container----------------->
<div id="footer" class="row">
<p>Copyright (C) 2014 治療院フィーダー. All Rights Reserved.</p>
</div><!-------------end footer-------------->
</div><!----------end wrapper---------------->

<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>
</body>
<script src="<?php bloginfo('template_url')?>/js/jquery.js"></script>
<script src="<?php bloginfo('template_url')?>/js/foundation.min.js"></script>
<script src="<?php bloginfo('template_url')?>/js/jquery.validate.min.js"></script>
<script>
  $(document).foundation();
</script>
</html>
